package com.bishe.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwx
 * @since 2022-04-14
 */
@Data
@TableName("student")
@ApiModel(value = "Student对象", description = "")
public class Student extends Model<Student> {

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("姓名")
    private String userName;

    @ApiModelProperty("学号")
    private String studentNo;

    @ApiModelProperty("密码")
    private String passWord;

    @ApiModelProperty("年龄")
    private String age;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("班级")
    private String onClass;

    @ApiModelProperty("照片")
    private String photo;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
